/* 变量 */
@jd_red: #c91523;

body {
  font-size: 14px;
  color: #666;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 40px;
  background-color: red;
  display: flex;
  .logo {
    width: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    i {
      width: 57px;
      height: 21px;
      background-image: url("../images/jd-sprites.png");
      background-size: 200px 200px;
      background-position: 0 -110px;
    }
  }
  .login {
    width: 50px;
    font-size: 14px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .search {
    flex: 1;
    padding: 5px 0;
    position: relative;
    &::before {
      content: "";
      position: absolute;
      top: 10px;
      left: 11px;
      width: 20px;
      height: 20px;
      background-image: url("../images/jd-sprites.png");
      background-size: 200px 200px;
      //  120 220
      background-position: -60px -110px;
    }
    input {
      width: 100%;
      height: 100%;
      border-radius: 15px;
      text-indent: 30px;
    }
  }
}

/* 导航 */
nav {
  display: flex;
  flex-wrap: wrap;
  a {
    width: 25%;
    text-align: center;
    padding: 5rem/32 0;
    font-size: 14rem/32;
    img {
      width: 50%;
      display: inline-block;
      // margin: 0 auto;
    }
  }
}

/*  掌上秒杀 */
.hand_kill {
  /* 标题 */
  .hand_kill_title {
    display: flex;
    justify-content: space-between;
    padding: 5rem/32;
    font-size: 14rem/32;
    /* 闹钟 */
    .clock {
    }
    /* 文字提示 */
    .hand_kill_name {
      color: @jd_red;
    }
    /* 时间 */
    .time {
      span {
        background-color: #000;
        color: #fff;
        &:nth-child(3n) {
          background-color: #fff;
          color: #000;
        }
      }
    }
    /* 超链接 */
    > a {
      color: @jd_red;
    }
  }
  /* 内容 */
  .hand_kill_content {
    display: flex;
    font-size: 14rem/32;
    a {
      flex: 1;
      position: relative;
      text-align: center;
      img {
      }
      .tips {
        background-color: #fdb60a;
        color: #fff;
        border-radius: 50%;
        padding: 2rem/32 5rem/32;
        position: absolute;
        // bottom: 40px;
        // right: 60px;
        bottom: 30%;
        right: 30%;
      }
      .news_prices {
        font-size: 16rem/32;
        color: @jd_red;
      }
      del {
      }
    }
  }
}

/* 618 主题日 */
.theme_day {
  .theme_day_title {
    position: relative;
    ul {
      position: absolute;
      /* 宽度 变成了内容撑开了 图片-自带宽度 */
      width: 100%;
      bottom: 5rem/32;
      left: 0;
      li {
        padding: 2rem/32;
        float: left;
        width: 50%;
        a {
        }
      }
    }
  }
  .theme_day_content {
    display: flex;
    flex-wrap: wrap;
    a {
      /* 前3张 33.33% */
      &:nth-child(-n + 3) {
        width: 33.33%;
      }
      /* 后4张 50% */
      &:nth-last-child(-n + 4) {
        width: 50%;
      }
    }
  }
}

/* 公共的商品标题 */
.goods_title {
  font-weight: 600;
  color: @jd_red;
  font-size: 16rem/32;
}
/* 超市 */
.market {
  .market_title {
  }
  .market_content {
    a {
      width: 50%;
      float: left;
      &:nth-child(3) {
        padding-bottom: 1px;
      }
    }
  }
}

/* 主题街 */
.theme_stree {
  .theme_stree_content {
    a {
      float: left;
      width: 25%;
      &:nth-child(-n + 2) {
        width: 50%;
      }
      &:nth-child(2) {
        padding-bottom: 1px;
      }
    }
  }
}

/* 品牌推荐 */
.recommend {
  .recommend_content {
    display: flex;

    a {
      flex: 3;
      &:first-child {
        flex: 4;
      }
    }
  }
}

/* 猜你喜欢 */
.guess {
  .guess_title {
    display: flex;
    justify-content: space-between;
    padding: 5rem/32;
    a {
      font-weight: normal;
      font-size: 13rem/32;
      img {
        width: 18rem/32;
        height: 18rem/32;
        display: inline-block;
        vertical-align: middle;
      }
    }
  }
  .guess_content {
    ul {
      display: flex;
      flex-wrap: wrap;
      li {
        width: 50%;
        padding: 5rem/32;
        /* 价格 */
        .goods_prices {
          display: flex;
          justify-content: space-between;
          span {
            color: @jd_red;
            font-size: 14rem/32;
          }
          a {
            color: #666;
            border: 1rem/32 solid #ccc;
            font-size: 13rem/32;
          }
        }
        /* 详情 */
        .goods_info {
          img {
            width: 80%;
            margin: 0 auto;
          }
          p {
            color: #000;
            overflow: hidden;
            height: 38rem/32;
            border-bottom: 1rem/32 solid #000;
          }
        }
      }
    }
  }
}

/* 底部工具栏 */
.btm_tool {
  text-align: center;
  background-color: #f3f5f7;
  > * {
    padding: 10rem/32 0;
    border-top: 1rem/32 solid #000;
  }

  /* 加载更多 */
  .more {
    display: block;
  }
  /* 注册 */
  .register {
    display: flex;
    a {
      flex: 1;
      border-right: 1rem/32 solid #000;
      &:last-child {
        border-right: none;
      }
    }
  }
  /* 设备 */
  .devices {
    display: flex;

    a {
      flex: 1;
      span {
        display: inline-block;
        width: 33rem/32;
        height: 33rem/32;
        background-color: red;
      }
      p {
      }
    }
  }
}

footer {
  background-color: #fff;
  /* 块级元素加定位之后 宽度=内容撑开 */
  width: 100%;
  height: 50px;
  display: flex;
  position: fixed;
  left: 0;
  bottom: 0;
  a {
    flex: 1;
    img {
      width: 64px;
      margin: 0 auto;
    }
  }
}

body {
  padding-bottom: 50px;
}
